<!DOCTYPE html>
<html>
<head>
    <title>加分申请</title>
    <#include "/header.html">
</head>
<body>
<div id="zcapp" v-cloak>

<div v-show="!zcshowList">
    <div class="grid-btn">
        <a  class="btn btn-primary" @click="showapply">申请</a>
    </div>
    <table id="jqGrid"></table>

</div>

<div  v-show="zcshowList" class="panel panel-default">
    <div class="panel-heading">加分申请</div>
    <form class="form-horizontal">



        <div class="form-group">
            <div class="col-sm-2 control-label">加分类别</div>
            <div class="col-sm-5">
                <select  v-model="atype"   @change="choose" class="form-control" >
                    <option value="" selected>选择类别</option>
                    <option v-for="(item,index) in poptions" :key="index"  :value='item.id' >{{item.name}}</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-2 control-label">加分项</div>
            <div class="col-sm-5">
                <select  v-model="ap.btype"    class="form-control" >
                    <option value="" selected>选择类别</option>
                    <option v-for="(item,index) in coptions" :key="index"  :value='item.id' >{{item.name}}</option>
                </select>
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-2 control-label">佐证材料jpg</div>
            <div class="col-sm-10" id="upBox">
                <div id="inputBox">
                    <input type="file" title="佐证材料" id="file" multiple accept="image/jpg,image/JPEG"/>
                    佐证材料</div>
                <input type="hidden" v-model="ap.img" id="photo">
                <div id="imgBox">
                </div>
            </div>

        </div>

        <!--<div class="form-group">
            <div class="col-sm-2 control-label">起始时间</div>
        <div class="col-md-3" >
            <el-date-picker v-model="ap.begin" style=" width:170px;float:left;"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="起始时间"
            >
            </el-date-picker>
        </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">结束时间</div>
        <div class="col-md-3">
            <el-date-picker v-model="ap.end"
                            style="width:170px;float:left;"
                            type="datetime"
                            value-format="yyyy-MM-dd HH:mm"
                            placeholder="结束时间"
            >
            </el-date-picker>
        </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">请加原因</div>
            <div class="col-sm-5">
                <textarea v-model="ap.content"></textarea>
            </div>
        </div>-->

        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="zcsave" value="确定"/>
<!--            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>-->
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/student/applay.js?_${.now?long}"></script>
<script type="text/javascript">

    imgUpload({
        inputId:'file', //input框id
        imgBox:'imgBox', //图片容器id
        upUrl:'${request.contextPath}/eval/fileUpload',  //提交地址
    })
</script>
</body>
</html>